package org.tale.cloudbase.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author sec
 * @version 1.0
 * @date 2021/5/21
 **/
@FeignClient(name = "${spring.application.name}")
public interface BaseFeignService {

    /**
     * 基于Feign的接口调用
     *
     * @param str 用户ID
     * @return UserDetail
     */
    @GetMapping(value = "discovery/echo/{str}")
    String feignEcho(@PathVariable String str);
}
